package com.guigu.www.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guigu.www.pojo.*;
import com.guigu.www.service.MDesignProcedureDetailsService;
import com.guigu.www.service.MDesignProcedureService;
import com.guigu.www.service.MDesingProndureModuleService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class MDesingProndureModuleController {

     //产品生产工序物料明细
    @Autowired
    MDesingProndureModuleService mDesingProndureModuleService;

    //产品生产工序明细表
    @Autowired
    MDesignProcedureDetailsService mdpdservice3;

    //产品生产工序
    @Autowired
    MDesignProcedureService mDesignProcedureService;



    //提交修改产品生产工序表
//    @RequestMapping("updatemDesignProcedure2.action")
//    public Map updatemDesignProcedure2(@RequestBody DesignProcedure designProcedure
//    ) {
//        Map map = new HashMap();
//        designProcedure.setDesignmoduletag("G002-1");
//        designProcedure.setModulecostpricesum(designProcedure.getModulecostpricesum());
//        boolean f = mDesignProcedureService.updateById(designProcedure);
//        if (f) {
//            map.put("msg","提交成功");
//        }else{
//            map.put("msg","提交失败");
//        }
//        return map;
//    }

    //提交修改产品生产工序表
//    @RequestMapping("shmDesignProcedure2.action")
//    public Map shmDesignProcedure2(@RequestBody DesignProcedure designProcedure
//    ) {
//        Map map = new HashMap();
//        designProcedure.setChangetag("S001-1");
//        designProcedure.setModulecostpricesum(designProcedure.getModulecostpricesum());
//        boolean f = mDesignProcedureService.updateById(designProcedure);
//        if (f) {
//            map.put("msg","审核成功");
//        }else{
//            map.put("msg","审核失败");
//        }
//        return map;
//    }




}
